<template>
	<view class="page">
		<view class="bg-white">
			<view class="flex flex-column align-center justify-center u-p-y-50 u-m-b-50">
        <u-image src="/pages/mine/mineBalance/static/suc.png" width="106rpx" height="106rpx"></u-image>
				<text class="font-28 font-weight-bold u-p-y-20">充值成功</text>
				<text class="font-35 font-weight-bold">¥{{price}}</text>
			</view>
			<view class="flex align-center justify-between u-m-x-40 u-p-y-20 u-p-x-30 rounded-20" style="background-color: #f6f4f8;">
				<text>充值方式</text>
				<text>{{type =='wechat'?'微信':'支付宝'}}</text>
			</view>
		</view>
		<view class="" style="margin-top: 100rpx;">
		  <dy-button size="default" width="576rpx" @click="back">完成</dy-button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				type: '',
				price: '',
			};
		},
		onLoad(options) {
			this.type = options.from
			this.price = options.price
		},
		methods: {
			back() {
				uni.navigateBack()
			}
		}
	}
</script>

<style lang="scss" scoped>
.page {
  min-height: 100vh;
  background-color: #fff;
}
</style>
